<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>用*号排列出直接三角形</title>
	</head>

	<body>
		<script>
			for(var i = 0; i <= 10; i++) {
				for(var j = 0; j < i; j++) {
					document.write('*');
				}
				document.write('<br>');
			}
		</script>
	</body>

</html>